-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better handling of account history #128
Conversation
much nicer can you confirm if this has an impact on performance |
It's a bit faster, really small, what's save is serialize/deserialize to stream. I plan to make another class to handle rewards and to store rewards by pool id (in validation.cpp where rewards are redistributed) |
@bvbfan is this still a work in progress? you can change the title when you feel it's ready to merge in |
It's no more a WIP, rewards are two types, |
|
this could break the app if the Rewards type does not exist anymore, can we name "PoolReward" back to "Rewards" so that the type still exists, and split commission out so basically just PoolRewards -> Rewards |
@bvbfan after merging the other PR (for including UTXO) this has quite a few conflicts |
Rebased. |
All unit tests pass locally, changes not affect wallet at all. |
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
@Bushstar can you test new approach? |
Signed-off-by: Anthony Fieroni <[email protected]>
Signed-off-by: Anthony Fieroni <[email protected]>
This a WIP, i have plan to store rewards by pool id as well, should we have it for account history as well? Now we have owner <-> token <-> amount, but if it's not a pool account we can use token id instead?